import request from '@/config/axios'

export const BaseCheckRepeatApi = {
  // 保存设置：删除旧记录并插入新记录
  deleteAndInsertBaseCheckRepeat: async (data) => {
    const res = await request.post({
      url: '/business/base-check-repeat/delete-and-insert',
      data
    });
    return res.data; // 预期为 true 或 false
  },

  // 获取查重字段设置
  getSettings: async () => {
    const res = await request.get({
      url: '/business/base-check-repeat/get-settings'
    });
    return res.data; // 预期为字段对象 { customerName: "1", ... }
  }
}
